home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Advisor / CD-ROM Advisor.iso / prodemo / demo / edna.dxr / 00001.ls next >
Encoding:
Text File  |  1995-09-13  |  1.2 KB  |  33 lines

  1. on startMovie
  2.   global gChannelForHighButtons, gChannelForSound, gCuesForVoice, gLabelsForVoiceCues, gCountOfCues, gPreTicksForCue, gNextCueIndex, gRadiusOfExitButton, gCenterOfMenuH, gCenterOfMenuV, gLabelForEndScreen, gMouseDownInButton, gUseMenuButton
  3.   set gChannelForHighButtons to 5
  4.   set gChannelForSound to 1
  5.   set the puppet of sprite gChannelForHighButtons to 1
  6.   set the visible of sprite gChannelForHighButtons to 0
  7.   set the ink of sprite gChannelForHighButtons to 0
  8.   set gCuesForVoice to [153, 371, 810, 950, 1242, 1380, 1750, 2105, 2285, 2700]
  9.   set gLabelsForVoiceCues to ["yes", "boy", "all", "play", "was", "while", "right", "here", "maybe", "good"]
  10.   set gCountOfCues to 10
  11.   set gPreTicksForCue to 45
  12.   set gRadiusOfExitButton to 32
  13.   set gCenterOfMenuH to 141
  14.   set gCenterOfMenuV to 443
  15.   set gUseMenuButton to 0
  16.   set gLabelForEndScreen to "endinfo"
  17. end
  18.  
  19. on isWithinExitButton h, v
  20.   global gRadiusOfExitButton, gCenterOfMenuH, gCenterOfMenuV
  21.   set hComp to gCenterOfMenuH - h
  22.   set vComp to gCenterOfMenuV - v
  23.   set r to sqrt((hComp * hComp) + (vComp * vComp)) < gRadiusOfExitButton
  24.   return r
  25. end
  26.  
  27. on stopSound
  28.   global gChannelForSound
  29.   if soundBusy(gChannelForSound) then
  30.     sound stop gChannelForSound
  31.   end if
  32. end
  33.